package com.hushow.plugin.brick;

import com.hushow.plugin.brick.service.IDemoExtensionPoint;
import com.hushow.plugin.brick.service.UserProvider;
import org.pf4j.Extension;

import javax.annotation.Resource;

/**
 * 插件2扩展点实现
 */
@Extension
public class Plugin2ExtensionPointImpl implements IDemoExtensionPoint<String> {

    @Resource
    private UserProvider userProvider;

    @Override
    public String getById(String id) {
        return "Plugin2ExtensionPointImpl getByid:"+id+ " userName:"+ userProvider.getUserName();
    }
}
